/*
* $Id: ContentSettings.h 2 2009-12-23 13:58:02Z volok-aleksej@yandex.ru $
*
* Copyright 2008 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _CONTENT_SETTINGS_H_
#define _CONTENT_SETTINGS_H_

class CSettingsWin;
interface IControl;

class CContentSettings : public CWnd
{
	IApplication* m_pApp;
	std::vector<IControl*> m_aWindows;
	std::tstring m_strCurSettingName;
	CSettingsWin* m_pParent;
protected:
	void DestroyDinamicInterface();
protected:
	DECLARE_MESSAGE_MAP();
	afx_msg void OnPaint();
	afx_msg LRESULT OnSetState(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT OnTabStop(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT OnDependent(WPARAM wParam, LPARAM lParam);
public:
	CContentSettings(CSettingsWin* pParent);
	virtual ~CContentSettings();

	void CreateDinamicInterface(const std::tstring& strNameSettings);
	bool IsValidate();
	void UpdateStates();
};

#endif /*_CONTENT_SETTINGS_H_*/